<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML >
<html lang="en">
<head>
<base href="<%=basePath%>">
<meta charset="UTF-8">
<title>人事档案管理.jsp</title>


<script type="text/javascript" src="qiang/zgq/js/jquery-1.8.3.js"></script>

<link rel="stylesheet" href="qiang/zgq/css/cal.css"  type="text/css" />
<script src="qiang/zgq/js/cal.js" type="text/javascript" charset="gbk"></script>




<script type="text/javascript">
	$(function(){
		$("table tr:odd").css("background-color","#FFFFFF");
		$("#sel_d2").click(function(){
                var v=$("#rilier2").val();
            	$("#start").val(v);
            				
        });
                		
        $("#sel_d3").click(function(){
                var v=$("#rilier3").val();
            	$("#end").val(v);
            				
         });
	});
</script>

<style type="text/css">
	#h111{margin-top: 12px;font-size: 14px;margin-left: 22px;}
	#h111 ul{overflow:hidden}
	#h111 ul li{float:left}
	
	#h112{margin-top: 27px;font-size: 14px;margin-left: 22px;}
	#h112 ul{overflow:hidden}
	#h112 ul li{float:left;padding-right: 5px;}
	#h1121{margin-top: 22px;margin-bottom: 12px;}
	#h1121 input{border: none;color: white;}
	
	#h113{margin-left: 22px;}
	#h113 #table1{font-size:14px;text-align: center;}
	#h113 #table1 .td1{width:100px;}
	#h113 #table1 .td2{width:60px;}
	#h113 #table1 .td3{width:50px;}
	#h113 #table1 .td4{width:115px;}
	#h113 #table1 .td5{width:108px;}
	#h113 #table1 .td6{width:154px;}
	#h113 #table1 .td7{width:110px;}
	#h113 #table1 .td8{width:110px;}
	#h113 #table1 .td9{width:120px;}
	#h113 #table1 .td10{width:154px;}
	
	#addPlane{background-image:url(qiang/zgq/image/peixunjihua/styled_button_u233.png);width: 95px;
		height: 24px;}
	#sele input{background:url(qiang/zgq/image/peixunjihua/styled_button_u233_mouseDown.png) no-repeat;width: 54px;height: 24px;
		color: white;font-size: 13px; padding-left: 5px;border: none;}
	
	table{border-collapse:collapse;border: none; }	
	table tr td{border: solid 1px #CCCCCC;}
	
	#page li{float: left;padding-left: 5px;}
</style>

</head>

<body>
	<div id=all
		style="width:1050px ;height: 2000px;background-color: #C9C9C9;margin: 0 auto;position:relative;top:30px;">
		<div id="header"
			style="width: 1030px; height:100px;position:absolute;left: 10px;top:0px;background-color:white;">
			<%@ include file="header.jsp"%>
		</div>
		<div id="left"
			style="height: 1000px;width: 200px; position:absolute;left: 10px;top:100px;background-color:white;">
			<%@ include file="left_ren.jsp"%>
		</div>
		<div id="right"
			style="height: 1000px;width: 810px;position:absolute;left: 230px;top:100px;
			background-color:#F4F4F4;">
			<div id="h11" style="width:782px;">
            	<div id="h111">
                	<ul>
                    	<li><a>人事管理</a></li>
                        <li>>></li>
                        <li><a>人事档案管理</a></li>
                    </ul>
                </div>
                <div id="h112">
                	<form action="findRenShiDengJiBycondition" method="post">
                        <ul id="u1">
                            <li>档案编码：</li>
                            <li><input type="text" id="xxxx" name="danganbianma" value="${danganbianma}" style="width: 80px;height: 21px;"/></li>
                            <li>审核状态：</li>
                            <li>
                            	<select name="shenhestatus">
                                	<option value="0">--请选择--</option>
                                    <option <c:if test="${shenhestatus==1}">selected</c:if> value="1">起草</option>
                                    <option <c:if test="${shenhestatus==2}">selected</c:if> value="2">审核中</option>
                                    <option <c:if test="${shenhestatus==3}">selected</c:if> value="3">审核通过</option>
                                    <option <c:if test="${shenhestatus==4}">selected</c:if> value="4">驳回</option>
                                    <option <c:if test="${shenhestatus==5}">selected</c:if> value="5">变更</option>
                                    <option <c:if test="${shenhestatus==6}">selected</c:if> value="6">变更审核中</option>
                                </select>
                            </li>
                            <li>档案状态：</li>
                            <li>
                            	<select name="danganzhaungtai">
                                	<option value="0">--请选择--</option>
                                    <option <c:if test="${danganzhaungtai==1}">selected</c:if> value="1">试用期</option>
                                    <option <c:if test="${danganzhaungtai==2}">selected</c:if> value="2">正式员工</option>
                                    <option <c:if test="${danganzhaungtai==3}">selected</c:if> value="3">离职</option>
                                    <option <c:if test="${danganzhaungtai==4}">selected</c:if> value="4">已删除</option>
                                    <option <c:if test="${danganzhaungtai==5}">selected</c:if> value="5">实习员工</option>
                                </select>
                            </li>
                            <li>建档时间：</li>
                            <li><%@ include file="日历2.jsp"%></li>
                            <li style="margin-left: 100px;">至</li>
                            <li><%@ include file="日历3.jsp"%></li>
                            <input type="hidden" id="start"/>
                            <input type="hidden" id="end"/>
                            <li></li>
                        </ul> 
                        <div id="h1121">
	                        <ul>
	                        	<li><input type="button" id="addPlane" value="人事档案登记"/></li>
	                        	<li id="sele"><input type="submit" value="查询" id="submit" /></li>
	                        </ul>
	                        
                        </div>
                         </form>
                </div>
                
                
               
                <div id="h113">
                	<table id="table1">
                    	<tr>
                        	<td class="td1">档案编码</td>
                            <td class="td2">姓名</td>
                            <td class="td3">性别</td>
                            <td class="td4">所属部门</td>
                            <td class="td5">职位</td>
                            <!-- <td class="td6">职称</td> -->
                            <td class="td7">建档日期</td>
                            <td class="td8">审核状态</td>
                            <td class="td9">建档状态</td>
                            <td class="td10">操作</td>
                        </tr>
                        <c:forEach items="${listRenshidengjis}" var="i">
	                        <tr>
	                        	<td class="td1">${i.danganbianma}</td>
	                            <td class="td2">${i.name}</td>
	                            <td class="td3">${i.sex}</td>
	                            <td class="td4">${i.dept.dname}</td>
	                            <td class="td5">${i.zhiweibiao.name}</td>
	                           <%--  <td class="td6">${i.zhichengbiao.zhichengname}</td> --%>
	                            <td class="td7">${i.jiandangtime}</td>
	                            <td class="td8">
	                            	<c:if test="${i.shenhestatus==1}">起草</c:if>
	                            	<c:if test="${i.shenhestatus==2}">审核中</c:if>
	                            	<c:if test="${i.shenhestatus==3}">审核通过</c:if>
	                            	<c:if test="${i.shenhestatus==4}">驳回</c:if>
                                    <c:if test="${i.shenhestatus==5}">变更</c:if>
                                    <c:if test="${i.shenhestatus==6}">变更审核中</c:if>
	                            </td>
	                            <td class="td9">
	                            	<c:if test="${i.danganzhaungtai==1}">试用期</c:if>
	                            	<c:if test="${i.danganzhaungtai==2}">正式员工</c:if>
	                            	<c:if test="${i.danganzhaungtai==3}">离职</c:if>
	                            	<c:if test="${i.danganzhaungtai==4}">已删除</c:if>
	                            	<c:if test="${i.danganzhaungtai==5}">实习员工</c:if>
	                            </td>
	                            <td class="td10">
	                            <c:if test="${i.shenhestatus==1}">
		                            <a href="findRenShiDangAnById?fuHe_zhi=1&id=${i.id}">修改</a>&nbsp;&nbsp;
		                            <a href="findRenShiDangAnById?fuHe_zhi=2&id=${i.id}">明细</a>&nbsp;&nbsp;
		                            <a href="findRenShiDangAnById?fuHe_zhi=7&id=${i.id}">删除</a>
		                        </c:if>
	                            <c:if test="${i.shenhestatus==2}">
		                            <a href="findRenShiDangAnById?fuHe_zhi=3&id=${i.id}">复核</a>&nbsp;&nbsp;
		                            <a href="findRenShiDangAnById?fuHe_zhi=2&id=${i.id}">明细</a>
		                        </c:if>
		                        <c:if test="${i.shenhestatus==3}">
		                        	<c:if test="${i.danganzhaungtai==4}">
			                        	<a href="findRenShiDangAnById?fuHe_zhi=2&id=${i.id}">明细</a>&nbsp;&nbsp;
			                        	<a href="findRenShiDangAnById?fuHe_zhi=8&id=${i.id}">恢复</a>&nbsp;</br>
			                        	<a href="delDangAn?id=${i.id}">永久删除</a>
		                        	</c:if>
		                        	<c:if test="${i.danganzhaungtai!=4}">
			                        	<a href="findRenShiDangAnById?fuHe_zhi=4&id=${i.id}">变更</a>&nbsp;&nbsp;
			                        	<a href="findRenShiDangAnById?fuHe_zhi=2&id=${i.id}">明细</a>&nbsp;&nbsp;
			                        	<a href="findRenShiDangAnById?fuHe_zhi=7&id=${i.id}">删除</a>
			                        </c:if>
		                        </c:if>
		                        <c:if test="${i.shenhestatus==4}">
		                            <a href="findRenShiDangAnById?fuHe_zhi=1&id=${i.id}">修改</a>&nbsp;&nbsp;
		                            <a href="findRenShiDangAnById?fuHe_zhi=7&id=${i.id}">删除</a>
		                        </c:if>
		                        <c:if test="${i.shenhestatus==5}">
		                            <a href="findRenShiDangAnById?fuHe_zhi=6&id=${i.id}">变更修改</a>&nbsp;&nbsp;
		                            <a href="findRenShiDangAnById?fuHe_zhi=2&id=${i.id}">明细</a>
		                        </c:if>
		                        <c:if test="${i.shenhestatus==6}">
		                            <a href="findRenShiDangAnById?fuHe_zhi=5&id=${i.id}">变更复核</a>&nbsp;&nbsp;
		                            <a href="findRenShiDangAnById?fuHe_zhi=2&id=${i.id}">明细</a>
		                            
		                        </c:if>
	                            </td>
	                        </tr>
	                    </c:forEach>   
                    </table>
                    <div style="width: 300px;margin-left: 240px;margin-top: 10px;">
                    	<script type="text/javascript">
                    		$(function(){
                    			$("#page").click(function(){
                    				//alert($("#hid").val());
                    			});
                    			$("#sele").click(function(){
                    				//alert("123");
                    			});
                    			
                    			$("#addPlane").click(function(){
                    				window.location.href="goXinZengRenShiDengJi";
                    			});
                    		});
                    	</script>
                    	<input type="hidden" value="${page}" id="hid"/>
						<ul id="page">
						    <li><a href="findRenShiDengJiBycondition?page=${page-1}">&laquo;</a></li>
						    <li><a href="findRenShiDengJiBycondition?page=1">1</a></li>
						    <li><a href="findRenShiDengJiBycondition?page=2">2</a></li>
						    <li><a href="findRenShiDengJiBycondition?page=3">3</a></li>
						    <li><a href="findRenShiDengJiBycondition?page=4">4</a></li>
						    <li><a href="findRenShiDengJiBycondition?page=5">5</a></li>
						    <li><a href="findRenShiDengJiBycondition?page=6">6</a></li>
						    <li><a href="findRenShiDengJiBycondition?page=7">7</a></li>
						    <li><a href="findRenShiDengJiBycondition?page=8">8</a></li>
						    <li><a href="findRenShiDengJiBycondition?page=9">9</a></li>
						    <li><a href="findRenShiDengJiBycondition?page=10">10</a></li>
						    <li><a href="findRenShiDengJiBycondition?page=${page+1}">&raquo;</a></li>
						    <li><input type="text" value="" id="go" size="2" style="height: 20px;"/></li>
						    <li><input type="button" value="Go" onclick="backGo()"/></li>
						</ul>
						
                    </div>
                    <script type="text/javascript">
                    		function backGo(){
                    		var id=$("#go").val();
                    		window.location.href="findRenShiDengJiBycondition?page="+id;
                    	};
                    </script>
                <div style="width: 200px;margin-left: 260px;margin-top: 10px;">
					<h1 style="color: red;">${message}</h1>
				</div>   
                </div>
                
           
            </div>
        </div>
		
		
		
		
		
		
		
		
		</div>
	</div>

</body>
</html>
